Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed all perf-db creations to be lazy #3212

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

DrizztDoUrden
Copy link
Contributor

This makes find or similar invokations to not construct any db instance when no tunable solver is applicable or in similar cases. Basically it removes redundant prefetches. After #3078 this can also delay any potential waiting for the db being prefetched, which can reduce expected delays even further.

@DrizztDoUrden DrizztDoUrden marked this pull request as ready for review September 24, 2024 12:36
@DrizztDoUrden DrizztDoUrden requested review from averinevg and removed request for JehandadKhan and junliume September 24, 2024 12:36
Comment on lines 170 to 172
MIOPEN_INTERNALS_EXPORT auto MakeConvDbGetter(const ExecutionContext& ctx)
-> std::function<PerformanceDb&()>;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[R] I think we shouldn't add new things into this file. This file has confusing name, also it probably has a license problem.

};
}

ConvSolution FindSolution(const ExecutionContext& ctx,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add #define FIN_ANY_SOLVER_FIND_SOLUTION_COMPAT 1 and wrap old FindSolution() with #if/#endif.
This code should be removed after the Fin is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants